package org.example.book.model;

import lombok.Data;

@Data
public class PageRequest {
    private Integer currentPage =1; //当前页
    private Integer pageSize=10; //每页显示条数

    private Integer offset;

    public Integer getOffset() {
        return (currentPage - 1) * pageSize;
    }
}
